﻿using WeDonekRpc.Helper.Validate;

namespace Basic.FlowRemoteModel.Application.Model
{
    public class BeginFlowArg
    {
        [NumValidate("flow.app.id.error", 1)]
        public long AppId
        {
            get;
            set;
        }
        [NumValidate("flow.link.pk.error", 1)]
        public long LinkPk
        {
            get;
            set;
        }
        [NullValidate("flow.link.type.null")]
        [LenValidate("flow.link.type.len", 1, 50)]
        public string LinkType
        {
            get;
            set;
        }
        [NullValidate("flow.doc.title.null")]
        [LenValidate("flow.doc.title.len", 2, 100)]
        public string DocTitle
        {
            get;
            set;
        }
        [LenValidate("flow.ver.len", 6, 20)]
        public string Ver
        {
            get;
            set;
        }
    }
}
